﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Master/MasterPage.master" CodeBehind="HospitalSales.aspx.cs" Inherits="HZ.Supervise.Web.Secondphase.ReportHospital.HospitalSales" %>
<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="~/Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="tabcontent2">
      
      <table class="querylist">
        <tr>
            <td align="right">
                医院名称：
            </td>
            <td align="left" >
                <asp:TextBox runat="server" ID="TextHospitalname"></asp:TextBox>
            </td>
           
            <td align="right">
                排名方式：
            </td>
            <td align="left">
                <asp:DropDownList ID="ddlorderby" runat="server">
                    <asp:ListItem Text="医院采购总金额" Value="0"></asp:ListItem>
                    <asp:ListItem Text="医院零售总金额" Value="0"></asp:ListItem>
                    <asp:ListItem Text="医院利润" Value="0"></asp:ListItem>
                </asp:DropDownList>
            </td>    
            
            <td width="100px">
            <asp:Button ID="Button1" runat="server" Text="查询" CssClass="searchbtn"
        SkinID="search" ToolTip="点击查询符合条件的数据" onclick="Button1_Click" />
           </td>                
        </tr>
        <tr>
         <td align="right">
                选择月份：
            </td>
         <td align="left">
            <asp:TextBox ID="txtMonth"  runat="server"></asp:TextBox>
                <asp:Button ID="btnMonth" runat="server" Text="选择月份" OnClick="btnMonthClick" CssClass="searchbtn"/>      
                 <asp:Button ID="btnCancelMonth" runat="server" Text="确定选择"  
                    CssClass="searchbtn" onclick="btnCancelMonth_Click"/>                        
           </td>
       
         <td>
          <asp:CheckBoxList ID="cblMonth" runat="server" RepeatDirection="Horizontal" 
                Visible="False" 
                >
              <asp:ListItem Value="1">一月</asp:ListItem>
              <asp:ListItem Value="2">二月</asp:ListItem>
              <asp:ListItem Value="3">三月</asp:ListItem>
              <asp:ListItem Value="4">四月</asp:ListItem>
              <asp:ListItem Value="5">五月</asp:ListItem>
              <asp:ListItem Value="6">六月</asp:ListItem>
              <asp:ListItem Value="7">七月</asp:ListItem>
              <asp:ListItem Value="8">八月</asp:ListItem>
              <asp:ListItem Value="9">九月</asp:ListItem>
              <asp:ListItem Value="10">十月</asp:ListItem>
              <asp:ListItem Value="11">十一月</asp:ListItem>
              <asp:ListItem Value="12">十二月</asp:ListItem>
        </asp:CheckBoxList>
       </td>
        <asp:Literal runat="server" ID="ltlAdvance" Text="&lt;tbody id='advance' style='display:none'&gt;"></asp:Literal>
        </tr>
     </table>
               
    </div>
   <asp:GridView ID="gvwHospitalSales" runat="server" CssClass="mainlist" 
         AutoGenerateColumns="False" onrowcreated="gvwHospitalSales_RowCreated" 
         CellPadding="1" CellSpacing="3">
        <Columns> 
            <asp:BoundField DataField="hospital" HeaderText="医院名称" ReadOnly="true" />           
            <asp:BoundField DataField="PurchaseNumerbTotalc_jb" HeaderText="医院采购总金额" 
                ReadOnly="True" />
            <asp:BoundField DataField="PurchaseNumerbTotalc_fjb" HeaderText="医院零售总金额"  />
            <asp:BoundField DataField="PurchaseAmountTotal_jb" HeaderText="医院利润"  />
            <asp:BoundField DataField="PurchaseAmountTotal_fjb" HeaderText="医院采购总金额"  />
             <asp:BoundField DataField="PurchaseNumerbTotalc_jb1" HeaderText="医院零售总金额" 
                ReadOnly="True" />
            <asp:BoundField DataField="PurchaseNumerbTotalc_fjb1" HeaderText="医院利润"  />
            <asp:BoundField DataField="PurchaseAmountTotal_jb2" HeaderText="医院采购总金额"  />
            <asp:BoundField DataField="PurchaseAmountTotal_fjb2" HeaderText="医院零售总金额"  />
            <asp:BoundField HeaderText="医院利润" />
            <asp:TemplateField HeaderText="操作">
                <ItemTemplate>                   
                    <asp:LinkButton ID="lbtnAduit" runat="server" CommandName="Aduit" >查看</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>          
            
            <asp:TemplateField HeaderText="图表">
                <ItemTemplate>                   
                    <asp:LinkButton ID="lbtnAduit2" runat="server" CommandName="Aduit" >图表</asp:LinkButton>
                </ItemTemplate>
            </asp:TemplateField>
        </Columns>
    </asp:GridView>
    <div>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged">
        </webdiyer:AspNetPager>
    </div>
    <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OperateType="导出"
        OnClick="btnExcel_Click" />&nbsp;统计：<asp:Label ID="lblCount" runat="server"></asp:Label>
    <div class="listip">
        <ul>
            <asp:LinkButton ID="lbtnSee" runat="server" OnClick="lbtnSee_Click" Font-Size="Small"
                Visible="false">显示图表</asp:LinkButton>
            <uc2:chartcontrol ID="ChartControl1" runat="server" Visible="False" />
           
            <li>说明:<span>可以点击相应按钮进入查看详细信息</span> </li>
        </ul>
    </div>

</asp:Content>


